package homework.test03;

public class TeacherOperator {
    private Teacher teacher;
    public TeacherOperator(Teacher teacher) {
        this.teacher = teacher;
    }

    //1.业务,实现老师在教书
    public void teach() {
        System.out.println("工号" + teacher.getId() + "的" + teacher.getName() + "正在讲课");
    }
}
